package com.metacube.metaconnect.Service;

import java.util.ArrayList;

import com.metacube.metaconnect.model.StatusPostDAO;

public class PostService {

	private StatusPostDAO postDAO;

	public PostService() {
		postDAO = new StatusPostDAO();
	}

	public boolean postStatus(String email, String post) {
		return postDAO.postStatus(email, post);
	}

	public ArrayList getAllPosts() {
		return postDAO.getAllPosts();
	}

	public boolean deletePost(int post_id) {
		return postDAO.deletePost(post_id);
	}

	public ArrayList getAllPosts(String userEmail) {
		return postDAO.getAllPosts(userEmail);
	}
}
